package org.jeecg.modules.engine.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.engine.entity.Frame;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.engine.entity.vo.FramePhoneVo;
import org.jeecg.modules.engine.entity.vo.FrameProcPhoneVo;
import org.jeecg.modules.engine.entity.vo.FrameTotalVo;
import org.jeecg.modules.engine.entity.vo.FrameVo;

/**
 * @Description: 构件表
 * @Author: jeecg-boot
 * @Date:   2020-07-20
 * @Version: V1.0
 */
public interface FrameMapper extends BaseMapper<Frame> {

	boolean deleteByMainId(@Param("mainId") String mainId);

	List<Frame> selectByMainId(@Param("mainId") String mainId);

	IPage<FrameVo> selectFramePage(Page<FrameVo> page, @Param("query") FrameVo frameVo); //手机端
	IPage<Frame> framePage(Page<Frame> page, @Param("query") Frame frame);//电脑端
	FrameTotalVo frameTotal(@Param("query") Frame frame);

	IPage<FramePhoneVo> inPhoneList(Page<FramePhoneVo> page,@Param("query") FramePhoneVo framePhoneVo);
	IPage<FrameProcPhoneVo> inPhoneFrameList(Page<FrameProcPhoneVo> page, @Param("query") FrameProcPhoneVo frameProcPhoneVo);

	FrameVo findById(@Param("id") String id);
}
